package corelayer.controllers;

import corelayer.INode;
import corelayer.INodeController;
import corelayer.IPacket;
import corelayer.packets.HelloPacket;

/**
 * フラッディングアルゴリズムを実装します
 */
public class FloodingController implements INodeController {

    @Override
    public void interval(INode node) {
        node.broadcast(new HelloPacket(node));
    }

    @Override
    public void onReceived(INode self, IPacket packet) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
